package com.cj.pojo.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

public class CommentQueryDTO {
    @NotNull(message = "文章ID/用户ID/父评论ID不能为空")
    private Long id;
    
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNum;
    
    @Min(value = 1, message = "每页大小不能小于1")
    private Integer pageSize;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
